package com.hadron.media.slideshow.items 
{
	import com.greensock.loading.display.ContentDisplay;
	import flash.display.Bitmap;
	import flash.display.PixelSnapping;
	/**
	 * ...
	 * @author Hadron
	 */
	public class SlideshowImageItem extends AbstractSlideshowItem
	{
		private   var _url:String;
		
		public function SlideshowImageItem()
		{
			super();
		}
		
		override public function transitionIn():void
		{
			super.transitionIn();
		}
		
		override public function transitionOut():void
		{
			super.transitionOut();
		}
		
		override public function set content(value:*):void
		{
			super.content = value;
			//smooth bitmap for better performance
			var bmp:Bitmap = (value as ContentDisplay).rawContent;
			bmp.smoothing = true;
			bmp.pixelSnapping = PixelSnapping.NEVER;
			bmp.scaleX = bmp.scaleY = .99;
			addChild(content);
		}
	}
}